class Car:
    def __init__(self, brand="",speed=0):
        self.brand = brand
        self.speed = speed

class ElectricCar(Car):
    def __init__(self,brand="" ,speed=0,electric_capacity=0,charge_power=0):
        super().__init__(brand, speed)
        self.electric_capacity = electric_capacity
        self.charge_power = charge_power


electricCar = ElectricCar("雅迪",60,80,50)
print(electricCar.__dict__)